<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/6/13
  Time: 18:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <link rel="stylesheet" type="text/css" href="css/chapter_examine.css">
</head>
<body>
<c:if test="${ce != 1}">
    当前没有需要审核的章节
</c:if>
<c:if test="${ce == 1}">
    待审核：
    <table class="tablelist">
        <thead>
        <tr>
            <th>书名</th>
            <th>作者</th>
            <th>章节名称</th>
            <th width="120px" colspan="2">状态</th>
        </tr>
        </thead>
        <c:forEach items="${chapter_examine}" var="chapter_examine">

            <tr>

                <td><a class="edit"
                       href="bookServlet?bookname=${chapter_examine.bookname}&author_name=${chapter_examine.author_name}">${chapter_examine.bookname}</a></td>
                <td>${chapter_examine.author_name}</td>

                <td><a class="edit" href="download/${chapter_examine.author_name}/${chapter_examine.bookname}/${chapter_examine.chapter_name}">${chapter_examine.chapter_name}</a></td>
                <td>
                    <a class="edit"
                       href="chapter_examine_dealServlet?state=1&bookname=${chapter_examine.bookname}&author_name=${chapter_examine.author_name}&chapter_no=${chapter_examine.chapter_no}&chapter_name=${chapter_examine.chapter_name}&address=${chapter_examine.address}">
                        <i class="fa fa-edit"></i>
                        通过
                    </a>
                </td>
                <td>
                    <a class="edit"
                       href="chapter_examine_dealServlet?state=0&bookname=${chapter_examine.bookname}&author_name=${chapter_examine.author_name}&chapter_no=${chapter_examine.chapter_no}&chapter_name=${chapter_examine.chapter_name}&address=${chapter_examine.address}">
                        <i class="fa fa-edit"></i>
                        未通过
                    </a>
                </td>

            </tr>
            <%--            </form>--%>
        </c:forEach>
    </table>
</c:if>
</body>
</html>
